﻿using System;
using System.Collections.Generic;
using System.Web.UI.WebControls;

using UI.WebControls.ControlsBase;
using BLL.AuthModel;
using Model.AuthModel;
namespace UI.WebControls
{
    /// <summary>
    /// UI层，页面控件基类，角色下拉列表
    /// </summary>
    public class RolesDropDown : DropDownListBase
    {
        protected override void OnLoad(EventArgs e)
        {            
            base.Items.Add(new ListItem("=选择角色=", "0"));
            IList<RolesInfo> list = new RolesBLL().ListRoles();
            foreach (RolesInfo info in list)
                base.Items.Add(new ListItem(info.RolesName, info.RolesID.ToString()));
            base.OnLoad(e);
        }
    }
}
